<?php	
		if( (!isset($strNoResult)) && (isset($strDirection) ))
		{
			echo "<tr valign='top'>
					<td colspan='3' align='center'>";
				//Only Display PREV if there are records to display
				if ($_SESSION['sesFirstLine']==0){
					echo"<img src='./images".SITE_SUFFIX."/previous.gif' border='0' alt=''>";
				}else{
					echo "<a href='".ScreenURL("Search",$arrPrev)."'><img src='./images".SITE_SUFFIX."/previous.gif'  border='0' alt='Previous'></a>
					";
					// onClick=\"$strFormName.strDirection.value='Prev';$strFormName.submit()\"
				}

						
					for ($intPageLink = $intFirstPageLink; $intPageLink <= $intLastPageLink; ++$intPageLink){
						if ($intPageLink != $intPageNumber){
							$arrSelectPage['intSelectedPage'] = "$intPageLink";
							echo "<a href='".ScreenURL("Search",$arrSelectPage)."'>$intPageLink</a>&nbsp;";
						}else{
							echo "<b>$intPageLink</b>&nbsp;";
						}
					}
				$arrSelectPage['intSelectedPage'] = "$intPages";

				//Only Display Next if there are records to display
				//echo "(ses First Line)  $_SESSION['sesFirstLine'] + (intlimit) $cboResultLimit > = (RecordCount) $RecordCount";
				if ($_SESSION['sesFirstLine']+$cboResultLimit>=$RecordCount){
					echo"<img src='./images".SITE_SUFFIX."/next.gif' border='0' alt=''></td>";
				}else{
					echo "
							<a href='".ScreenURL("Search",$arrNext)."'><img src='./images".SITE_SUFFIX."/next.gif' border='0' alt='Next'</a>
						</td>
					";
				}
		}else{
			// Set variable if next prev not used
			$_SESSION['sesFirstLine'] = 0;

		}
		echo "
		</tr>
		<tr>	
			<td colspan='3' align='center'>
				Page $intPageNumber/<a href='".ScreenURL("Search",$arrSelectPage)."'>$intPages</a>
			</td>
		</tr>
		<tr>	
			<td colspan='3'>
				<hr>
			</td>
		</tr>";
?>